<script setup>
import { ref } from 'vue'
import { saveItem_all } from './js/saveItem_all'

let relaod = ref(0)
const query = () => {
  relaod.value = Date.now()
}

const save = async () => {
  await saveItem_all()
  query()
}
</script>

<template>
  <div class="parameterConfiguration-container">
    <div class="routerView" :key="relaod">
      <router-view></router-view>
    </div>
    <!-- 按钮选项 -->
    <div class="parameterConfiguration_floor">
      <div class="btn_bg" @click="query">查询</div>
      <div class="btn_bg" @click="save">配置</div>
    </div>
  </div>
</template>

<style lang="less" scoped>
.parameterConfiguration {
  width: 100%;
  height: 100%;
}

.routerView {
  width: 100%;
  height: calc(100% - 46px);
  box-shadow: 1px 1px 10px rgba(222, 219, 219, 1);
  background-color: rgba(249, 249, 249, 1);
}
</style>
